var express = require('express');
var router = express.Router();
const  dataCtrl=require('../controllers/user.controllers');

/* GET users listing. */
// router.get('/', function(req, res, next) {
//   res.send('respond with a resource');
// });

router.post('/data',dataCtrl.create );
router.get('/data/:id', dataCtrl.getData);
router.delete('/data/:id', dataCtrl.remove);
router.post('/data/removes', dataCtrl.removes);
router.put('/data/:id', dataCtrl.update);//修改
router.post('/list', dataCtrl.list);

module.exports = router;
